﻿// Study0209.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// switch语句：输入一个0~6的整数，转换成星期输出

#include <iostream>;
using namespace std;

int main()
{
	cout << "请输入0~6中的任意整数：\n";
	int day;
	cin >> day;
	switch (day)
	{
	case 1:
		cout << "Monday";
		break;
	case 2:
		cout << "Tuesday";
		break;
	case 3:
		cout << "Wednesday";
		break;
	case 4:
		cout << "Thursday";
		break;
	case 5:
		cout << "Friday";
		break;
	case 6:
	case 0:
		cout << "Weekend";
		break;
	default:
		cout << "It is not a date number!";
		break;
	}
	return 0;
}

